package ControlLayer;

import DBLayer.DBActor;
import DBLayer.DBCustomer;
import DBLayer.DBEmployee;
import DBLayer.DBSupplier;
import ModelLayer.Actor;
import java.util.ArrayList;
import java.util.HashMap;

public class ActorController
{
    DBEmployee dbEmployee = new DBEmployee();
    DBSupplier dbSupplier = new DBSupplier();
    DBCustomer dbCustomer = new DBCustomer();
    DBActor dbActor = new DBActor();

    public ActorController()
    {
    }

    public ArrayList<Actor> getActorsByRole(String roleName)
    {
        return dbActor.getObjectsByRole(roleName);
    }

    public Actor validateEmployee(String username, String password)
    {
        return dbActor.validateEmployeeLogin(username, password);
    }

    public HashMap<Integer, String> GetZipCodes()
    {
        return dbActor.GetZipCodes();
    }
}
